
<%@ page import="org.bjou.UserBaseinfo" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="pertho">
		<g:set var="entityName" value="${message(code: 'userBaseinfo.label', default: 'UserBaseinfo')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<div class="container">
    <div class="row">
      <div class="twelve columns">
        
        
         <!-- 查询条件开始 -->
          <div class="box_c">
          <div class="box_c_heading cf box_actions">
            <p>查询条件</p>
          </div>
          <div class="box_c_content">
            <g:form  action="list" method="post">
             <div class="formRow">
              姓名：
              <input type="text" id='fullname' name='fullname' value="${params.fullname}"/>
              教师分组：
               <g:select id="userGroup" name="groupId" from="${org.bjou.UserGroup.list()}" 
                          optionKey="id" optionValue="groupName" 
                          value="${params.groupId}" 
                          class="many-to-one" noSelection="['': '请选择']"/> 
              <input class="gh_button save" type="submit" value="查询"></input>
              </div>
            </g:form>
          </div>
          </div>
         <!-- 查询条件结束 --> 
         
        <div class="box_c">

          <div class="box_c_heading cf">
            <p><g:message code="default.list.label" args="[entityName]" /></p>
          </div>
          <div class="box_c_content">
		  <!--start-->
		<div id="list-userBaseinfo" class="content scaffold-list" role="main">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
				<thead>
					<tr>
					
						<g:sortableColumn property="fullname" title="${message(code: 'userBaseinfo.fullname.label', default: 'Fullname')}" />
					
						<g:sortableColumn property="gentle" title="${message(code: 'userBaseinfo.gentle.label', default: 'Gentle')}" />
					
						<g:sortableColumn property="tel" title="${message(code: 'userBaseinfo.tel.label', default: 'Tel')}" />
					
						<g:sortableColumn property="idCard" title="${message(code: 'userBaseinfo.idCard.label', default: 'Id Card')}" />
					
                                                <g:sortableColumn property="email" title="${message(code: 'userBaseinfo.email.label', default: 'Email')}" />
					
                                                
						<g:sortableColumn property="userGroup.groupName" title="${message(code: 'userBaseinfo.userGroup.label', default: '教师分组')}" />
					
					
						<g:sortableColumn property="mobile" title="${message(code: 'userBaseinfo.mobile.label', default: 'Mobile')}" />
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${userBaseinfoInstanceList}" status="i" var="userBaseinfoInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${userBaseinfoInstance.id}">${fieldValue(bean: userBaseinfoInstance, field: "fullname")}</g:link></td>
					
						<td>${fieldValue(bean: userBaseinfoInstance, field: "gentle")}</td>
                                                
                                                
					
						<td>${fieldValue(bean: userBaseinfoInstance, field: "tel")}</td>
					
						<td>${fieldValue(bean: userBaseinfoInstance, field: "idCard")}</td>
                                                
                                                <td>${fieldValue(bean: userBaseinfoInstance, field: "email")}</td>
					
						<td>${fieldValue(bean: userBaseinfoInstance, field: "userGroup.groupName")}</td>
					
					
						<td>${fieldValue(bean: userBaseinfoInstance, field: "mobile")}</td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${userBaseinfoInstanceTotal}" />
			</div>
			    
            
            </div>
          </div>
        </div>
      </div>
    </div>
	</body>
</html>
